package com.sduept.nwld.dataserver.util;

import org.primefaces.model.CheckboxTreeNode;
import org.primefaces.model.TreeNode;

public class CheckAsynTreeNode extends CheckboxTreeNode {
	private boolean hasChildren = true;

	/**
	 * 
	 */
	private static final long serialVersionUID = -89267745897820357L;
	public CheckAsynTreeNode() {
       super();
    }
    
    public CheckAsynTreeNode(Object data) {
    	super(data);
    }

	public CheckAsynTreeNode(Object data, TreeNode parent) {
		super(data,parent);
	}
	
	public CheckAsynTreeNode(String type, Object data, TreeNode parent) {
		super(type,data,parent);
	}
	
	@Override
	public boolean isLeaf() {
		return !hasChildren;
	}

	public boolean isHasChildren() {
		return hasChildren;
	}

	public void setHasChildren(boolean hasChildren) {
		this.hasChildren = hasChildren;
	}
	
	
}
